package com.zhy.model;

import java.util.Date;

import com.zhy.annotation.Column;
import com.zhy.annotation.Table;

@Table(tableName="article")
public class Article {

	@Column(columnName="id",identify=true)
	private int id;
	@Column(columnName="tittle")
	private String tittle;
	@Column(columnName="body")
	private String body;
	@Column(columnName="time")
	private String date;
	@Column(columnName="user_id")
	private User user;
	
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getTittle() {
		return tittle;
	}
	public void setTittle(String tittle) {
		this.tittle = tittle;
	}

	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}

	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	
}
